package com.zhuoyue.system.domain;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zhuoyue.common.annotation.Excel;
import com.zhuoyue.common.core.domain.BaseEntity;

/**
 * 网关操作日志对象 tbl_gateway_log
 *
 * @author hewenze
 * @date 2020-12-24
 */
@Data
public class TblGatewayLog extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long id;

    /**
     * 用户id
     */
    @Excel(name = "网关Id")
    private String gatewayMac;

    /**
     * 用户id
     */
    @Excel(name = "用户id")
    private Long userId;

    /**
     * 操作类型
     */
    @Excel(name = "操作类型")
    private String type;

    /**
     * 原数据
     */
    @Excel(name = "原数据")
    private String beforeData;


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("type", getType())
                .append("beforeData", getBeforeData())
                .append("createTime", getCreateTime())
                .toString();
    }
}
